function notString(value) {
        return !value || typeof value !== 'string'
}

export function cellphoneValidator(_, value, callback) {
        if (notString(value)) {
                callback()
                return
        }

        const cellphone = value.trim()
        if (/^[1]([3-9])[0-9]{9}$/.test(cellphone)) {
                callback()
        } else {
                callback(new Error('请输入正确的手机号'))
        }
}